package com.jusda.api.controller;

import com.jusda.service.insert.InsertService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:y022 07/05/2022 09:38
 * @description:
 */
@RestController
@RequestMapping("/generate")
@RequiredArgsConstructor
public class GenerateDataApi {

    private final InsertService insertService;

    @GetMapping("batch")
    public void batchGenerate(@RequestParam int size) {
        insertService.batchGenerate(size);
    }
}
